fs   = require 'fs'
path = require 'path'

# See docs at http://brunch.readthedocs.org/en/latest/config.html.

exports.config = 

  files: 
    
    javascripts: 
      defaultExtension: 'js',
      joinTo: 
        'javascripts/app.js': /^app/
        'javascripts/vendor.js': /^vendor/

      order:
        before: [
          'vendor/scripts/console-helper.js',
          'vendor/scripts/jquery-1.8.3.min.js',
          'vendor/scripts/jquery.json-2.4.js',
          'vendor/scripts/handlebars-1.0.rc.1.js',
          'vendor/scripts/ember-latest.js',
          'vendor/scripts/ember-data-latest.js',
          'vendor/scripts/bootstrap.js',
		  
          'vendor/scripts/jquery.cookie.js',
          'vendor/scripts/jquery.form.js',
          'vendor/scripts/jquery.dateFormat-1.0.js',
          'vendor/scripts/jquery.validate.js',
          
          'vendor/scripts/highcharts.js',
          'vendor/scripts/exporting.js',
          
          'vendor/scripts/cometd/cometd.js',
          'vendor/scripts/cometd/AckExtension.js',
          'vendor/scripts/cometd/ReloadExtension.js',
          'vendor/scripts/cometd/TimeStampExtension.js',
          'vendor/scripts/cometd/TimeSyncExtension.js',
          
          'vendor/scripts/cometd/jquery.cometd.js',
          'vendor/scripts/cometd/jquery.cometd-ack.js',
          'vendor/scripts/cometd/jquery.cometd-reload.js',
          'vendor/scripts/cometd/jquery.cometd-timestamp.js',
          'vendor/scripts/cometd/jquery.cometd-timesync.js',
          
          'vendor/scripts/uuid.js',
          'vendor/scripts/zebra_dialog.js',
          
          'vendor/scripts/eastidea.js'
          ]

    stylesheets:
      defaultExtension: 'css'
      joinTo: 'stylesheets/app.css'
      order:
        before: [
        	'vendor/styles/bootstrap.css',
        	'vendor/styles/font-awesome.css',
        	'app/styles/application.less',
        	'app/styles/zebra_dialog.css',
        	'app/styles/jquery.jqplot.css', 
        	'app/styles/cmxform.css'
        ]

    templates:
      precompile: true
      defaultExtension: 'hbs'
      joinTo: 'javascripts/app.js' : /^app/

  server:
    port: 3333
    base: '/'
    run: no

